import request from '@utils/request'


// 获取用户信息
export function getInfo() {
  return request({
      url: '/system/user/getInfo',
      headers: {
          isToken: false
      },
      method: 'get',
  })
}

// 验证码重置密码
export function smsResetPwd(data) {
  return request({
      url: '/auth/business/smsResetPwd',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
  })
}
// 短信重置密码获取验证码
export function resetPwd(data) {
  return request({
      url: '/auth/business/resetPwd',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
  })
}

// 短信重置密码获取验证码
export function captchaResetSms() {
  return request({
      url: '/resource/sms/captchaResetSms',
      headers: {
        isToken: false
      },
      method: 'GET',
  })
}

// 获取用户类别
export function getUserCategoryList(type) {
  return request({
    url: `/business/element/getUserCategoryList/${type}`,
    headers: {
      isToken: false
    },
    method: 'GET',
  })
}

// 获取智能助手历史记录
export function getUserAngleView() {
  return request({
    url: '/business/defect/getUserAngleView',
      headers: {
          isToken: false
      },
      method: 'get',
  })
}
